<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>前端给后端传参方式</title>
</head>
<body>
    <form action="getParameter" method="post">
        <!-- name属性的值决定了后端取前端传的值时使用什么取出参数，如：getParameter("此处name的值")-->
        <span>username:</span><input type="text" name="username">
        <br>
        <span>password:</span><input type="password" name="password">
        <br>
        <input type="submit" value="submit">
    </form>
</body>
</html>